package hotgammon.domain;

import hotgammon.view.BackgammonUserInterface;
import hotgammon.view.tools.CheckerMoveTool;
import hotgammon.view.tools.DieRollTool;
import hotgammon.view.tools.GameStateTool;
import hotgammon.view.tools.GameWonTool;
import minidraw.framework.DrawingEditor;
import minidraw.framework.Tool;

public class BetamonGame {

	public static void main(String[] args) {
		BackgammonUserInterface ui = 
		      new GameUserInterface("Betamon Game", new BetamonFactory());
		    
		    DrawingEditor editor = ui.getEditor();
		    
		    editor.open();
		    
		    Tool die = new DieRollTool(ui);
		    Tool move = new CheckerMoveTool(ui);
		    Tool win = new GameWonTool(ui);
		    
		    editor.setTool(new GameStateTool(move, die, win, ui));
		    ui.getGame().newGame();
	}
}
